<?php

class Paging_Adapter_Array
{
	protected $_data = NULL;

	function __construct($data)
	{
		$this -> _data = $data;
	}

	function getItems($offset, $limit)
	{
		return array_slice($this->_data, $offset, $limit);
	}

	function getTotalCount()
	{
		return count($this -> _data);
	}

}
